package o2o.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * oss 配置
 */
@Component
@ConfigurationProperties(prefix = "oss")
public class OssProperties {
    private boolean isUse;
    private String endpoint;
    private String bucketName;
    private String picLocation;
    private String accessKeyId;
    private String accessKeySecret;
    private String imageBaseUrl;

    public String getImageBaseUrl() {
        return imageBaseUrl;
    }

    public OssProperties setImageBaseUrl(String imageBaseUrl) {
        this.imageBaseUrl = imageBaseUrl;
        return this;
    }

    public boolean isUse() {
        return isUse;
    }

    public OssProperties setIsUse(boolean isUse) {
        this.isUse = isUse;
        return this;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public OssProperties setEndpoint(String endpoint) {
        this.endpoint = endpoint;
        return this;
    }

    public String getBucketName() {
        return bucketName;
    }

    public OssProperties setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    public String getPicLocation() {
        return picLocation;
    }

    public OssProperties setPicLocation(String picLocation) {
        this.picLocation = picLocation;
        return this;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public OssProperties setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
        return this;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public OssProperties setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
        return this;
    }
}
